|
|
|
| Table A.4. Visual Basic controls for the SQLVBChild child form. | | Control | Property | Setting | | Form | Name | SQLVBChild | | Height | 3690 | | Width | 7485 | | MDIChild | -1True | | Data | Name | Data1 | | Height | 300 | | Left | 120 | | Top | 2820 | | Width | 7095 | | Visible | False | | DBGrid | Name | DBGrid1 | | Height | 2535 | | Left | 120 | | DataSource | Data1 | | Top | 120 | | Width | 7095 |
|
|
|
|
|
|
You need to add code in four locations within the SQLVBChild form: the Form_Load event, the Form_Activate event, the Form_Unload event, and the Form_Resize event. |
|
|
|
|
| |
|
|
|
|
To add code to one of the form events, double-click any empty location of the form to bring up the Visual Basic code window for SQLVBChild. The first event you should see is the Form_Load event. You can use the drop-down list box on the right to locate other events for the form object. |
|
|
|
|
|
|
|
|
|
|
Open the Visual Basic code window for the Form_Load event and add the Visual Basic program code in Listing A.2. |
|
|
|
|
|